const TokenKey = 'userToken'

export function getToken() {
	return localStorage.getItem(TokenKey)
}

export function setToken(token: string) {
	return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
	return localStorage.removeItem(TokenKey)
}

export function getuserInfo() {
	return JSON.parse(localStorage.getItem('userInfo') || '{}')
}